#!/bin/bash
case $1 in
start)
sudo redis-server /etc/redis.conf
echo "redis-server is running"
;;
stop)
redis-cli shutdown
echo "redis-server is stopped"
;;
status)
ps -ef |grep -v grep|grep redis-server 
;;
*)
redis.sh start|stop|status
;;
esac
